if (e.getKey() == e.ENTER) {
    var txtMsn = this.getItem('txtMsn');
    if (!this.getItem('frmScan').isValid()) {
        txtMsn.focus(true);
    }

    txtMsn.setReadOnly(true);
    var vMsn = txtMsn.getValue();
    var inputStore = this.getItem('grdInput').getStore();
    if (inputStore.findExact('msn', vMsn) >= 0) {
        this.getItem('dspInfo').setValue(vMsn + "重复投料，操作失败。");

        txtMsn.setReadOnly(false);
        txtMsn.setValue('');
        txtMsn.focus(true);
        return;
    }

    var me = this;
    YX.ZbusRpc.request({
        module: 'SmfrViewMaterialSnCanInputWorkOrderService',
        params: {
            mo: me.getItem('cdvMo').getValue(),
            msn: vMsn
        },
        success: function(rsp) {
            var rcd = me.getItem('grdBom').getStore().findRecord('matCode', rsp.msnSts.matCode);
            if (!rcd) {
                me.getItem('dspInfo').setValue(vMsn + "批次物料不在此工单BOM中。");
                return;
            }

            rcd.set('scanFlag', 'Y');
            inputStore.insert(0, {
                scanTime: Ext.Date.format(new Date(), "H:i:s"),
                mo: me.getItem('cdvMo').getValue(),
                resBarcode: me.getItem('txtResBarcode').getValue(),
                inputQty: me.ignoreInputQty === "Y" ? rsp.msnSts.qty: me.getItem('numInputQty').getValue(),
                msn: rsp.msnSts.msn,
                matCode: rsp.msnSts.matCode,
                matDesc: rsp.msnSts.matDesc
            });
        },
        callback: function(opt, rspOK, rsp) {
            if (rspOK) {
                me.getItem('dspInfo').setValue(rsp.rspDesc);
                if (!me.ignoreInputQty) {
                    me.ignoreInputQty = me.getItem('numInputQty').getValue() === null ? "Y": "N";
                }
            }
            txtMsn.setReadOnly(false);
            txtMsn.setValue('');
            if (me.ignoreInputQty === "Y") {
                txtMsn.focus();
            } else {
                me.getItem('numInputQty').focus(true);
            }
        }
    });
}